package com.asset.salesforce.form;

import java.util.List;

public class EventElement {

private Integer Id;
	
	private String title;
	
	private String url;
	
	private String start;
	
	private String end;
	
	private String className;
	
	private String tooltip;
	
	private String description;
	
	private String allDay;
	/**
	 * @return the id
	 */
	public Integer getId() {
		return Id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		Id = id;
	}
	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * @return the start
	 */
	public String getStart() {
		return start;
	}
	/**
	 * @param start the start to set
	 */
	public void setStart(String start) {
		this.start = start;
	}
	/**
	 * @return the end
	 */
	public String getEnd() {
		return end;
	}
	/**
	 * @param end the end to set
	 */
	public void setEnd(String end) {
		this.end = end;
	}
	/**
	 * @return the className
	 */
	public String getClassName() {
		return className;
	}
	/**
	 * @param className the className to set
	 */
	public void setClassName(String className) {
		this.className = className;
	}
	/**
	 * @return the tooltip
	 */
	public String getTooltip() {
		return tooltip;
	}
	/**
	 * @param tooltip the tooltip to set
	 */
	public void setTooltip(String tooltip) {
		this.tooltip = tooltip;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the allDay
	 */
	public String getAllDay() {
		return allDay;
	}
	/**
	 * @param allDay the allDay to set
	 */
	public void setAllDay(String allDay) {
		this.allDay = allDay;
	}
	


	@Override
	public String toString(){
		
		String str = 
				"{id           :"+this.Id+
				",title        :\""+this.title+
				"\",url        :\""+this.url+
				"\",start      :"+this.start+
				",end          :"+this.end+
				",className    :\""+this.className+	
				"\",tooltip    :\""+this.tooltip+
				"\",description:\""+this.description+
				"\",allDay     :"+this.allDay+
				"}";
		return str;
		
	}
	public String  toList(List<EventElement> elements){
		String str= new String("");
		for(EventElement element : elements){
			if(elements.size()-1 == elements.indexOf(element)){
			str+=element.toString();
			}else{
				str +=element.toString()+",";
			}
		}
		return str;
		
	}
	
}
